package com.project.service.impl;

import com.project.bean.RootBean;
import com.project.mapper.IRootMapper;
import com.project.service.IRootService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class RootServiceImpl implements IRootService {
    @Autowired
    private IRootMapper mapper;


    @Override
    public List<RootBean> findAll() {
        return mapper.findAll();
    }

    @Override
    public List<RootBean> findByUserId(int id) {
        return mapper.findByUserId(id);
    }
}
